亚洲不卡无码在线观看_国产福利在线网址成人_国内精品久久久久伊人AV_国产精品一区无码麻豆

 
技術(shù)博客INFO
聯(lián)系我們CONTACT

公司地址:茂名市人民南路新村大院22號101

電話:13592986386

KindEditor JS 賦值您當(dāng)前的位置:首頁 > KindEditor JS 賦值

KindEditor JS 賦值

發(fā)布時間:2019/5/8 10:14:42

    <script>
        var editor1=null;

        KindEditor.ready(function (K) {
             editor1 = K.create('#Content_FTB', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/upload_json.ashx',
                fileManagerJson: '/kindeditor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=Form1]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=Form1]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>




--第二步

 editor1.insertHtml(cComments);